#!/usr/bin/zsh
source /home/deepin-liu/.zshrc
source activate comfy
dir_path=/media/deepin-liu/zao/krita/ComfyUI/ComfyUI/output/KKoutput
if [ -d $dir_path ]; then
    echo "files not found!"
else
    mkdir -p $dir_path
fi
cd $dir_path
cp /home/deepin-liu/Desktop/generate_gallery.py $dir_path
python -m http.server 8010 &
while true ;do
    python generate_gallery.py
    sleep 10
done
